﻿using System.Web.Mvc;
using cludg.Infrastructure.DI;
using cludg.Web.Core.Modules;
using cludg.Web.TestModule.Controllers;

namespace cludg.Web.TestModule
{
	public class TestModule : IModule
	{
		public string ModuleName
		{
			get { return "cludg.Web.TestModule"; }
		}

		public void LoadModule(ApplicationContext context)
		{
			var container = context.Container;

			// Register module controolers
			container.Register<IController, TestController>("controller.test", DILifetime.PerResolve);
		}

	}
}